package chapter14.interfaces;

/**
 * @author : DuJiabao
 * @Date : 2021/3/4 10:01
 * @Project : thinking_in_java
 * @File : null.java
 * @Desc :
 */
public class AnonymousImplementation {
  public static void main(String[] args) throws Exception {
    A a = AnonymousA.makeA();
    a.f();
    System.out.println(a.getClass().getName());
    // 无敌的反射，依然可以做到！！！
    HiddenImplementation.callHiddenMethod(a, "g");
    HiddenImplementation.callHiddenMethod(a, "u");
    HiddenImplementation.callHiddenMethod(a, "v");
    HiddenImplementation.callHiddenMethod(a, "w");
  }
}
